<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>添加班级信息</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body style="background: #afb4db">
<div class="container">
    <h1 style="text-align: center; color: blue; font-family: Arial, sans-serif;">学生管理系统</h1>
    <hr>
    <h2>添加班级信息</h2>
    <hr>

    <form action="#" th:action="@{/saveClass}" th:object="${class}" method="POST">

        <div class="input-group mb-3" th:width="30px">
            <span class="input-group-text" style="margin-right: 5px; border: 2px solid; border-radius: 10px;" id="basic-addon1">班级姓名：</span>
            <input type="text" th:field="*{name}" placeholder="name" width="50px" style="background-color: #f391a9; border-radius: 10px;">
        </div>


        <button type="submit" class="btn btn-info col-2"  style="margin-right: 5px; border: 2px solid; border-radius: 10px;"> 保存 </button>
    </form>

    <hr>

</div>
<a th:href="@{/classInfo}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回班级管理页面 </a>
<a th:href="@{/}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回系统首页 </a>

</body>

</html>